home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000098_icon-group-sender _Tue Apr 1 02:33:20 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 1 Apr 1997 05:46:32 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: Tue, 1 Apr 1997 02:33:20 GMT
  4. From: nr@viper.cs.Virginia.EDU (Norman Ramsey)
  5. Message-Id: <5hps5g$5kg@viper.cs.Virginia.EDU>
  6. Organization: University of Virginia Computer Science Department
  7. Sender: icon-group-request@cs.arizona.edu
  8. Subject: file locking in unix Icon
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10. Status: RO
  11. Content-Length: 644
  12.  
  13.  
  14. I need an Icon program to maintain a database of received messages.
  15. Because these messages come in the mail, multiple copies of the
  16. program can be running at one time.  I'd like to lock the database.
  17. The Unix flock() primitive provides a readers/writers locking
  18. capability, which is just what I need, but I'm not sure how to import
  19. it into Icon.  (I figure it can be done using the dynamic loading
  20. capability, which I don't understand.)
  21.  
  22. Does anybody out there have C code that will implement Icon functions
  23. to acquire and release locks on the file descriptors underlying Icon
  24. files?
  25.  
  26. Norman
  27.  
  28. -- 
  29. Norman Ramsey
  30. http://www.cs.virginia.edu/~nr
  31.